using JetBrains.Annotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Drivers;
using Orchard.Localization;
using Orchard.UI.Notify;
using Contrib.Mod.AccountWidgets.Models;
using Orchard;
using System.Linq;
using Orchard.Environment.Extensions;

namespace Contrib.Mod.AccountWidgets.Drivers
{
    [OrchardFeature("Contrib.Mod.AccountWidgets.RegistrationWidgets")]
    public class ModalRegistrationWidgetPartDriver : ContentPartDriver<ModalRegistrationWidgetPart>
    {
        public ModalRegistrationWidgetPartDriver()
        {
        }

        protected override DriverResult Display(ModalRegistrationWidgetPart part, string displayType, dynamic shapeHelper)
        {
            

            return Combined(
                ContentShape("ModalRegister", () => shapeHelper.ModalRegister())

            );
        }


    }
}